#include "component_factory.hh"

const std::string & ComponentVersionImpl::getVersion() const {
    return version_;
}

const std::string & ComponentVersionImpl::getFullVersion() const {
    return fullVersion_;
}

void ComponentVersionImpl::setVersion(const std::string & version, const std::string& phase) {
    version_ = version;
    phase_ = phase;
    if (phase.empty()) {
        fullVersion_ = version;
    } else {
        fullVersion_ = version + "-" + phase;
    }
}
